import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false


//全局入口
import Demo from "./components/Demo.vue"
Vue.component("Demo",Demo)

//事件总线
const bus = new Vue()
Vue.prototype.$bus = bus;

//全局样式
import "@/styles/index.scss"

//mock 随机数据
import "@/utils/mock"

//mixin
import '@/utils/mixins'

new Vue({
  router,
  store,
  watch:{
    '$route':function(to,from){
      console.log(to);
      console.log(from);
    }
  },
  render: h => h(App)
}).$mount('#app')
